﻿using ServerFrame;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Servertest
{
    public class AbsOnceHandler
    {
        public byte Logic_Type = 0;     
        public int Logic_area = 0;      

        //这里的重载函数都是为了AbsBroadcastHandler好用
        public void Send(MyToken token, int command){
            Send(token, Logic_area, command);
        }

        public void Send(MyToken token, int area, int command){
            Send(token, Logic_area, command,null);
        }

        public void Send(MyToken token,int area,int command,object message) {
            Send(token, new TransModel(Logic_Type, area, command, message));
        }

        public void Send(MyToken token, TransModel model) {
            token.Send(model);
        }

    }
}
